package org.example.clouddemo.bean.common.Param;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("创建产品参数")
@Data
public class UpdateProductParam {

    @ApiModelProperty(value = "id", required = true)
    @NotNull(message = "不能为空")
    private Long id;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "图片")
    private String productImg;

    @ApiModelProperty(value = "价格")

    private BigDecimal price;

    @ApiModelProperty(value = "描述")
    private String productDesc;

    @ApiModelProperty(value = "排序")
    private Integer sortIndex;

    @ApiModelProperty(value = "是否启用（1-是，0-否）")
    private Boolean enableFlag;

    @ApiModelProperty(value = "库存")

    private Integer productNum;
}
